<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ include file = "check.jsp" %>
<jsp:useBean id = "modify" scope = "application" class = "Bean.ModifyUser"></jsp:useBean>
<jsp:setProperty property="*" name="modify"/>
<%
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
modify.setSubmit(request.getParameter("globalsubmit"));

if (request.getParameter("sex") != null) {
    modify.setSex(request.getParameter("sex"));
}
if (request.getParameter("year") != null) {
    modify.setYear(request.getParameter("year"));
}
if (request.getParameter("month") != null) {
    modify.setMonth(request.getParameter("month"));
}
if (request.getParameter("day") != null) {
    modify.setDay(request.getParameter("day"));
}
if (request.getParameter("gyear") != null) {
    modify.setGyear(request.getParameter("gyear"));
}
if (request.getParameter("gmonth") != null) {
    modify.setGmonth(request.getParameter("gmonth"));
}

switch (modify.modify(id)) {
case 0 :
    out.print(modify.mError);
    return;
case 1 :
	modify.readUsr(id);
}

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的简历 - 个人服务 - 应届生求职网 - Powered by YingJieSheng.COM
</title><link href="./css/personal_v1.css" rel="stylesheet" type="text/css" />
<link href="./css/category.css" rel="stylesheet" type="text/css" />
<link href="./css/popup.css" rel="stylesheet" type="text/css" />
<script src="./js/globals.js" language="javascript" type="text/javascript"></script>
<script src="./js/ajax.js" language="javascript" type="text/javascript"></script>
<script src="./js/category.js" language="javascript" type="text/javascript"></script>
<script src="./js/control.js" language="javascript" type="text/javascript"></script>
<script src="./js/checks.js" language="javascript" type="text/javascript"></script>
</head>
<body><div id="header">
	<div class="headerwarp">
		<h1 class="logo"><a href="http://k.yingjiesheng.com/center/"><img src="/images/personal/logo.gif" title="我的应届生" /></a></h1>
		<ul class="menu">
			<li><a href="http://k.yingjiesheng.com/center/">我的应届生</a></li>
			<li><a href="/index.php/personal/resume.htm/?menu=2" target="_blank">我的简历</a></li>
			<li><a href="http://apply.yingjiesheng.com/my/" target="_blank">我的申请表</a></li>
			<li><a href="http://bbs.yingjiesheng.com/" target="_blank">应届生BBS</a></li>
			<li><a href="http://k.yingjiesheng.com/space-home.html" target="_blank">开心应届生</a></li>
		</ul>
		<div class="nav_account">
			<a href="/index.php/personal/index.htm/?menu=1" class="login_thumb"><img src="/images/personal/noavatar_small.gif" alt="" width="20" height="20" /></a>
			<a href="/index.php/personal/index.htm/?menu=1" class="loginName">欢迎您 中文</a>
			<br /><a href="#" onclick="page_leave_active = false;logouter();return false;">退出</a></div>
	</div>
</div>
<div id="nav">
	当前位置：<a href="http://www.yingjiesheng.com/" target="_blank">应届生求职网</a> &raquo; <a href="http://k.yingjiesheng.com/center/">我的应届生</a> &raquo; 我的简历
</div><div id="wrap">	<div id="main">
		<div id="app_sidebar">
			<h3><a href="./info.html">个人简历</a></h3><p class="fold">
				<a class="hidden" href="#" onclick="expandall()">全部展开</a>　
				<a class="expand"href="#" onclick="collapseall()">全部隐藏</a>
			</p>
			<div onclick="tree('1');" class="pointer"><img id="img1" src="./images/personal/tree_minus.gif" />我的资料</div>
			<ul id="fo_menu1" class="app_list">
				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./info.html">信息中心</a></li>
				<li><img src="./images/personal/tree_linebottom.gif" /><a href="./password.html" target="_blank">修改密码</a></li>
			</ul>

			<div onclick="tree('2');" class="pointer"><img id="img2" src="./images/personal/tree_minus.gif" />我的简历</div>
			<ul id="fo_menu2"  class="app_list">
				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./global.html">我的基本信息</a></li>
				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./resume.html">简历列表</a></li>
				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./letter.html">求职信管理</a></li>
				<li><img src="./images/personal/tree_linebottom.gif" /><a href="./sendout.html">外发简历</a></li>
			</ul>

			<div onclick="tree('3');" class="pointer"><img id="img3" src="./images/personal/tree_plus.gif" />个人服务管理</div>
			<ul id="fo_menu3" class="app_list">
				<li><img src="./images/personal/tree_linebottom.gif" /><a href="./requests.html">本站职位申请记录</a></li>
				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./account.html">我的YJS帐户</a></li>
				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./order.html">我的支付订单</a></li>
				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./finance.html">财务记录</a></li>

				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./navsms.html">短信信息订阅</a></li>

				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./smslist.html">我的短信信息</a></li>

				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./xjhinfo.html" target="_blank">宣讲会提醒订阅</a></li>
				<li><img src="./images/personal/tree_linebottom.gif" /><a href="./xjhlist.html">我订阅的宣讲会</a></li>
				<li><img src="./images/personal/tree_linebottom.gif" /><a href="./deadline.html" target="_blank">网申提醒订阅</a></li>
				<li><img src="./images/personal/tree_linebottom.gif" /><a href="./deadlinelist.html">我订阅的网申</a></li>
			</ul>


			<div onclick="tree('5');" class="pointer"><img id="img5" src="./images/personal/tree_middleplus.gif" />我的信息收藏夹</div>
			<ul id="fo_menu5" style="display: none" class="app_list">
				<li><img src="./images/personal/tree_linemiddle.gif" /><a href="./my_fav.html">我的求职记事本</a></li>
				<li><img src="./images/personal/tree_linebottom.gif" /><a href="./my_fav_cat.html">信息标签管理</a></li>
			</ul>

			<div onclick="tree('6');" class="pointer"><img id="img6" src="./images/personal/tree_plus.gif" />系统操作</div>
			<ul id="fo_menu6" style="display: none" class="app_list">
				<li><img src="./images/personal/tree_linebottom.gif" /><a href="#" onclick="page_leave_active = false;logouter();return false;">安全退出</a></li>
			</ul>
		</div>

		<div id="mainarea"><script src="./js/person_head.js" language="javascript" type="text/javascript"></script>
<script src="./js/jquery.js" language="javascript" type="text/javascript"></script>
<script src="./js/jqModal.js" language="javascript" type="text/javascript"></script>

<h2 class="title">
	位置: 我的简历 - <a href="/index.php/personal/resume.htm">简历列表</a> - 我的基本信息
</h2>

<div class="c_form"><form action="./global.jsp" method="post" name="wane_global" target="ajaxform" onsubmit="return valiglobal();">
		<table cellpadding="0" cellspacing="0" class="formtable">
			<caption>
				<h2>个人基本资料</h2>
			</caption>
			<thead>
				<tr>
					<th width="100">&nbsp;</th>
					<td width="300">中文</td>
					<td>English</td>
				</tr>
			</thead>
			<tr>
				<th><span class="warn">*</span> 姓名:</th>
				<td><input type="text" name="cntruename" class="t_input" value="<jsp:getProperty name="modify" property="cntruename" />" size="15" /> 请填写真实姓名</td>
				<td><input type="text" name="entruename" class="t_input" value="<jsp:getProperty name="modify" property="entruename" />" size="15" /> 填写英文简历时必须</td>
			</tr>
			<tr>
				<th><span class="warn">*</span> 性别:</th>
				<td colspan="2">
					<input type="radio" name="sex" value="1" <%= (modify.getSex() == 1) ? "" : "checked=\"checked\"" %> /> 男
					<input type="radio" name="sex" value="2" <%= (modify.getSex() == 0) ? "" : "checked=\"checked\"" %> /> 女
				</td>
			</tr>
			<tr>
				<th><span class="warn">*</span> 生日:</th>
				<td colspan="2">
				    <select name="year">
				    <% int y = modify.getYear();
                       for (int i = 1999; i > 1950; i--) { %><option value="<%= i %>"<%= (y == i) ? " selected=\"selected\"" : "" %>><%= i %></option><%} %>
				    </select>
                    <select name="month">
                    <% int m = modify.getMonth();
                       for (int i = 1; i <= 12; i++) { %><option value="<%= i %>"<%= (m == i) ? " selected=\"selected\"" : "" %>><%= i %></option><%} %>
                    </select>
                    <select name="day">
                    <% int d = modify.getDay();
                       for (int i = 1; i <= 31; i++) { %><option value="<%= i %>"<%= (d == i) ? " selected=\"selected\"" : "" %>><%= i %></option><%} %>
                    </select>
				</td>
			</tr>

			<tr>
				<th><span class="warn">*</span> 毕业时间:</th>
				<td colspan=2>
                <select name="gyear">
                <% y = modify.getGyear();
                   for (int i = 2017; i > 1950; i--) { %><option value="<%= i %>"<%= (y == i) ? " selected=\"selected\"" : "" %>><%= i %></option><%} %>
                </select>
                <select name="gmonth">
                <% m = modify.getGmonth();
                   for (int i = 1; i <= 12; i++) { %><option value="<%= i %>"<%= (m == i) ? " selected=\"selected\"" : "" %>><%= i %></option><%} %>
                </select>				</td>
			</tr>
			<tr>
				<th><span class="warn">*</span> 学历:</th>
				<td colspan="2"><a href="javascript:;" onclick="category.load('teducation','education',document.wane_global.education.value);return false;" class="select"><span id="teducation"><jsp:getProperty name="modify" property="streducation" /></span></a>
					<input type="hidden" id="education" name="education" value="<jsp:getProperty name="modify" property="education" />" /></td>
			</tr>

			<tr>
				<th><span class="warn">*</span> 毕业学校:</th>
				<td>					<a href="javascript:;" onclick="category.load('tschool1','school1',document.wane_global.school1.value);return false;" class="select">
					<span id="tschool1"><jsp:getProperty name="modify" property="strschool1" /></span></a>
					<input type="hidden" id="school1" name="school1" value="<jsp:getProperty name="modify" property="school1" />" />
					<input type="hidden" id="dschool1" name="dschool1" value="<jsp:getProperty name="modify" property="strschool1" />" /><a href="javascript:;" onclick="category.load('tschool2','school2',document.wane_global.school2.value);return false;" class="select">
					<span id="tschool2"><jsp:getProperty name="modify" property="strschool2" /></span></a>
					<input type="hidden" id="school2" name="school2" value="<jsp:getProperty name="modify" property="school2" />" />
					<input type="hidden" id="dschool2" name="dschool2" value="<jsp:getProperty name="modify" property="strschool2" />" /><input type="text"  name="school" class="t_input" id="school" value="<jsp:getProperty name="modify" property="school" />">
					<div>请选择毕业学校，如果列表中没有，请手工输入</div>
				</td>
				<td>
					<input type="text" name="engraduateSchool" class="t_input" id="engraduateSchool" value="<jsp:getProperty name="modify" property="engraduateSchool" />">
					<div> 请输入英文学校名(填写英文简历时必须)</div>
				</td>
			</tr>

			<tr>
				<th><span class="warn">*</span> 所学专业:</th>
				<td>					<a href="javascript:;" onclick="category.load('tdeparta','departa',document.wane_global.departa.value);return false;" class="select">
					<span id="tdeparta"><jsp:getProperty name="modify" property="departa" /></span></a>
					<input type="hidden" id="departa" name="departa" value="102" />
					<input type="hidden" id="ddeparta" name="ddeparta" value="<jsp:getProperty name="modify" property="departa" />" /><a href="javascript:;" onclick="category.load('tdepartb','departb',document.wane_global.departb.value);return false;" class="select">
					<span id="tdepartb"><jsp:getProperty name="modify" property="departb" /></span></a>
					<input type="hidden" id="departb" name="departb" value="103" />
					<input type="hidden" id="ddepartb" name="ddepartb" value="<jsp:getProperty name="modify" property="departb" />" /><input type="text" name="cndepartment" class="t_input" id="cndepartment"  value="<jsp:getProperty name="modify" property="cndepartment" />" />
					<div>请选择专业，如果列表中没有，请手工输入</div>
				</td>
				<td>
					<input type="text" name="endepartment" class="t_input" id="endepartment"  value="<jsp:getProperty name="modify" property="endepartment" />" />
					<div>请输入对应英文名称(填写英文简历时必须)</div>
				</td>
			</tr>

			<tr>
				<th><span class="warn">*</span> 户口所在地:</th>
				<td colspan="2"><a href="#" onclick="category.load('tbpa','bpa',document.wane_global.bpa.value);return false;" class="select"><span id="tbpa"><jsp:getProperty name="modify" property="bpa" /></span></a> -
					<input type="hidden" id="bpa" name="bpa" value="16" />
					<input type="hidden" id="dbpa" name="dbpa" value="<jsp:getProperty name="modify" property="bpa" />" /><a href="#" onclick="category.load('tbpb','bpb',document.wane_global.bpa.value);return false;" class="select"><span id="tbpb"><jsp:getProperty name="modify" property="bpb" /></span></a>
					<input type="hidden" id="bpb" name="bpb" value="245" />
					<input type="hidden" id="dbpb" name="dbpb" value="<jsp:getProperty name="modify" property="bpb" />" /></td>
			</tr>

			<tr>
				<th><span class="warn">*</span> 目前所在地:</th>
				<td colspan="2">					<a href="#" onclick="category.load('tpa','pa',document.wane_global.pa.value);return false;" class="select"><span id="tpa"><jsp:getProperty name="modify" property="pa" /></span></a> -
					<input type="hidden" id="pa" name="pa" value="15" />
					<input type="hidden" id="dpa" name="dpa" value="<jsp:getProperty name="modify" property="pa" />" />					<a href="#" onclick="category.load('tpb','pb',document.wane_global.pa.value);return false;" class="select"><span id="tpb"><jsp:getProperty name="modify" property="pb" /></span></a>
					<input type="hidden" id="pb" name="pb" value="222" />
					<input type="hidden" id="dpb" name="dpb" value="<jsp:getProperty name="modify" property="pb" />" /></td>
			</tr>
		</table>
		<table cellpadding="0" cellspacing="0" class="formtable">
			<caption>
				<h2>主要联系方式</h2>
			</caption>
			<tr>
				<th width="100"><span class="warn">*</span> E-mail:</th>
				<td><input type="text" name="email" class="t_input" size="30" value="<jsp:getProperty name="modify" property="email" />" /></td>
			</tr>
			<tr><td colspan="2" style="padding-left: 48px;"><span class="warn">*</span> 手机或固定电话至少填写一项</td></tr>
			<tr>
				<th>手机:</th>
				<td><input type="text" name="mobile" class="t_input" size="30" value="<jsp:getProperty name="modify" property="mobile" />" /></td>
			</tr>
			<tr>
				<th>固定电话:</th>
				<td><input type="text" name="telphone" class="t_input" size="30" value="<jsp:getProperty name="modify" property="telphone" />" /></td>
			</tr>
		</table>

		<table cellpadding="0" cellspacing="0" class="formtable" style="margin-bottom:30px;">
			<caption>
				<h2>其它联系方式:</h2>
			</caption>
			<thead>
			<tr>
				<th width="100">&nbsp;</th>
				<td width="300">中文</td>
				<td>English</td>
			</tr>
			</thead>

			<tr>
				<th>通信地址:</th>
				<td><input type="text" name="cnaddress" class="t_input" size="30" value="<jsp:getProperty name="modify" property="cnaddress" />" /></td>
				<td><input type="text" name="enaddress" class="t_input" size="30" value="<jsp:getProperty name="modify" property="enaddress" />" /></td>
			</tr>
			<tr>
				<th>邮政编码:</th>
				<td colspan="2"><input type="text" class="t_input" name="zipcode" size="30" value="<jsp:getProperty name="modify" property="zipcode" />" /></td>
			</tr>
			<tr>
				<th>个人主页:</th>
				<td colspan="2"><input type="text" class="t_input" name="homepage" size="30" value="<jsp:getProperty name="modify" property="homepage" />" /></td>
			</tr>

			<tr>
				<th>&nbsp;</th>
				<td colspan="2"><input type="submit" name="Submit" value=" 保 存 " class="submit" />
				
<input type="hidden" name="globalsubmit" value="1" />
					<input type="hidden" name="unbasic" value="" />
					<input type="hidden" name="op" value="" />
					<input type="hidden" name="language" value="" />
				</td>
			</tr>
		</table>
	</form>
</div>

<script language="javascript" type="text/javascript">
function cglobal(name,cname,ename){
	var theform = document.wane_global;
	eval('theform.cnd'+name+'.value = "' +cname+ '";');
	eval('theform.end'+name+'.value = "' +ename+ '";');
}

function valiglobal(results){
	var theform = document.wane_global;
	if (results){
		var altmsg = '';
		var isubmit = true;
		switch (results){
			case 'truename' : altmsg = '请填写您的姓名';theform.cntruename.focus(); break;
			case 'entruename' : altmsg = '请填写您的英文姓名';theform.entruename.focus(); break;
			case 'email' : altmsg = '请填写有效的Email';theform.email.focus(); break;
			case 'sex' : altmsg = '请选择性别'; break;
			case 'birth' : altmsg = '请选择出生日期'; break;
			case 'bornplace' : altmsg = '请选择户口所在地'; break;
			case 'lifeplace' : altmsg = '请选择目前所在地'; break;
			case 'gyear' : altmsg = '请选择毕业时间'; break;
			case 'education' : altmsg = '请选择最高学历'; break;
			case 'school' : altmsg = '请填写毕业学校'; break;
			case 'depart' : altmsg = '请填写所学专业'; break;
			case 'enschool' : altmsg = '请填写毕业学校英文名'; break;
			case 'endepart' : altmsg = '请填写所学专业的英文名'; break;
			case 'contact' : altmsg = '请填写手机或电话'; break;
			case 'success' : alert("您的基本资料已经修改完成");redirect('/index.php/personal/resume.htm'); break;
			case 'fsuccess' : popupShow("成功保存您的个人基本信息！接下来您可以创建简历：<div style=\"text-align:center;padding-bottom:20px;\"><a href=/ajax.php?action=personal&option=resume&extent=create&info=0&language=0 target=ajaxform >[中文]</a>  &nbsp;&nbsp; <a href=/ajax.php?action=personal&option=resume&extent=create&info=0&language=1 target=ajaxform>[English]</a><br><br> <a href='/index.php/personal/index.htm'>返回，暂时不填简历</a></div>",'',2,0,'','',"{overlay: 50,modal: true}"); return false;
		}
		if (altmsg){
			alert(altmsg + "\t\t");
		}
		if (theform.Submit.disabled && isubmit){
			theform.Submit.disabled = false;
		}else if (!isubmit){
		}
	}else{
		if (theform.cntruename.value == ''&& theform.entruename.value == '' ){
			valiglobal('truename');
			return false;
		}
		else if (theform.year.value == '0' || theform.month.value == '0' || theform.day.value == '0' ){
			valiglobal('birth');
			return false;
		}
		else if (theform.bpa.value == '0' || theform.dbpa.value == '' || theform.bpb.value == '0' || theform.dbpb.value == '' ){
			valiglobal('bornplace');
			return false;
		}
		else if (theform.pa.value == '0' || theform.bpa.value == '' || theform.pb.value == '0' || theform.bpb.value == '' ){
			valiglobal('lifeplace');
			return false;
		}
		else if (theform.gyear.value == '0' || theform.gmonth.value == '0'){
			valiglobal('gyear');
			return false;
		}
		else if (theform.education.value == '0' ){
			valiglobal('education');
			return false;
		}
		else if (theform.school.value == '' && theform.engraduateSchool.value == '' && theform.school2.value == '0'){
			valiglobal('school');
			return false;
		}
		else if (theform.cndepartment.value == '' && theform.endepartment.value == '' && theform.departb.value == '0'){
			valiglobal('depart');
			return false;
		}else{
			theform.Submit.disabled = true;
		}
	}
}
function valirsmcreate(results,rsmid){
	var theform = document.wane_rsmcreate;
	if (results){
		var altmsg = '';
		var extjav = false;
		switch (results){
			case 'type' : altmsg = '错误: 您还没有选择简历类别, 请返回';break;
			case 'maxium' : altmsg = '您的可建立简历已经达到最大限额, 建立失败';extjav = 'category.directoff("form_create_cid")';break;
			case 'maxlang' : altmsg = '您的当前语种的简历已经达到最大限额, 建立失败';break;
			case 'unbasic' : altmsg = '您的基本资料不完整, 操作失败, 请完整您的基本资料后再试';extjav = 'redirect("/index.php/personal/resume/global.htm")';break;
			case 'certifycode' : altmsg = '图形码错误\n\n1: 您还没有填写图形码.\n2: 您填写的图形码字符不正确. \n3: 您的图形码已失效, 单击图片替换图片形码.'; break;
			case 'success' : altmsg = '恭喜您! 您的简历已经建立完成';extjav = 'redirect("/index.php/personal/resume/index.htm")';break;
		}
		if (altmsg != ''){
			alert(altmsg + "\t\t");
		}
		if (!extjav){
			if (theform.Submit.disabled){
				theform.Submit.disabled = false;
				theform.Reset.disabled = false;
			}
		}else{
			eval(extjav);
		}
	}else{
		if (theform.resumetype.value == ''){
			valirsmcreate('type');
			return false;
		}
		if (confirm('您是否确定要添加该简历')){
			theform.Submit.disabled = true;
			theform.Reset.disabled = true;
		}else{
			return false;
		}
	}
}
</script>		</div>
		<div class="clear"></div>
		<div id="bottom"></div>
	</div><div id="footer">
		<p class="r_option"><a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a></p>
		<p>应届生求职网 - <a href="http://www.yingjiesheng.com/about/about.html" target="_blank">联系我们</a>
		 - <a  href="http://www.miibeian.gov.cn" target="_blank">增值电信业务经营许可证沪B2-20070147</a></p>
		<p>Powered by <a  href="http://www.yingjiesheng.com" target="_blank"><strong>YingJieSheng.com</strong></a> 
		&copy; 2005-<script>var yjs_now= new Date();document.write(yjs_now.getFullYear())</script></p>
	</div>
	<iframe id="ajaxform" name="ajaxform" src="about:blank" width="0" height="0" style="display:none"></iframe>
	<div id="chplacec" style="display:none">
		<div class="h">
			<div class="right"><a href="#" onclick="category.directoff('chplacec');return false"><img src="/images/icon/closewindow.gif" alt="关闭窗口" border="0" /></a></div>
			请选择您要去的地区
		</div>
		<ol>
</ol>
	</div>
	<script src="./js/extents.js" language="javascript" type="text/javascript"></script>
</div>
</body>
</html>